/**
 * 
 */
package com.yidu.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yidu.domain.vo.UserRoleVo;
import com.yidu.service.UserRoleService;

/**
 * @描述 用户角色控制器层
 * @author 梁海长
 * @date 2019年9月25日上午9:44:43
 *
 */
@Controller
@RequestMapping("UserRole")
public class UserRoleController {
	@Resource
	private UserRoleService userRoleService;
	/**
	 * 查询全部数据
	 * @return
	 */
	@RequestMapping("findAll")
	@ResponseBody
	public List<UserRoleVo> findAll(){
		UserRoleVo userRoleVo = new UserRoleVo();
		List<UserRoleVo> list = userRoleService.findAll(userRoleVo);
		return list ;
	}
	@RequestMapping("findUserId")
	@ResponseBody
	public List<UserRoleVo> findUserId(String id){
		
		return userRoleService.findUserId(id);
		
	}
	
}
